libxl: make libxl__poller_put tolerate p==NULL
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 11 Oct 2013 11:10:45 +0000 (12:10 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 11 Oct 2013 14:50:21 +0000 (15:50 +0100)
commit6ed09e37722f601661fff42f80279a41773c574e
tree622e5eff9a96bba5e970bfdd592979cbb4c516b2
parent6fd9b0361e2eb5a7f12bdd5cbf7e42c0d1937d26
libxl: make libxl__poller_put tolerate p==NULL

This is less fragile, and more in keeping with the usual style of
initialising everything to 0 and freeing things unconditionally.

Correspondingly, remove the tests at the call sites.

Apropos of c1f3f174.  No overall functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_event.c
tools/libxl/libxl_internal.h